<?php

/**
 * Description of checkSeatLimitAction
\* www.teuker.nl - mail@teuker.nl
 * 
 * @author francisc
 */

class checkSeatLimitAction extends sfAction {
    
    public function execute($request) {
        if (!Util::is_seat_limit($request->getParameter('person_no'), 
                                 Util::convertDateClientServer($request->getParameter('date')),
                                 $request->getParameter('time_hour'),
                                 $request->getParameter('time_minute'),
                                 $this->getUser()))
            return sfView::SUCCESS;
        
        return sfView::ERROR;
    }
}
